package com.day18.Copy;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;

public class CopyJavaDemo01 {
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new java.io.FileReader("myJava\\CopyJava.java"));
        BufferedWriter bw=new BufferedWriter(new java.io.FileWriter("myJava\\CopyJava01.java"));
        char[] chs=new char[1024];
        int len;
        while((len=br.read(chs))!=-1){
            bw.write(chs,0,len);
        }
        bw.close();
        br.close();
    }
}
